using System.ComponentModel.DataAnnotations.Schema;
using System.Data.Entity.ModelConfiguration;

namespace ConsoleApplication11.Models.Mapping
{
    public class report_categoryMap : EntityTypeConfiguration<report_category>
    {
        public report_categoryMap()
        {
            // Primary Key
            this.HasKey(t => t.report_category_id);

            // Properties
            this.Property(t => t.report_category_id)
                .HasDatabaseGeneratedOption(DatabaseGeneratedOption.None);

            this.Property(t => t.report_category1)
                .HasMaxLength(50);

            this.Property(t => t.report_category_en_US)
                .HasMaxLength(50);

            // Table & Column Mappings
            this.ToTable("report_category");
            this.Property(t => t.report_category_id).HasColumnName("report_category_id");
            this.Property(t => t.report_category1).HasColumnName("report_category");
            this.Property(t => t.report_category_en_US).HasColumnName("report_category!en-US");
        }
    }
}
